package tjs.study.mini.mybatismini.mapper;


import tjs.study.mini.mybatismini.config.annotion.MiniParam;
import tjs.study.mini.mybatismini.config.annotion.MiniSelect;
import tjs.study.mini.mybatismini.entity.TjsUser;
import tjs.study.mini.mybatismini.simpleAop.AopMiniMapper;

/**
 * @author nicky
 * @date 2021/9/1 下午5:44
 */
@AopMiniMapper
public class MyTjsUserMapperImpl {
    @MiniSelect("select id, name, state, country from tjs_user where state = #{state}")
    public TjsUser findByStateImpl(@MiniParam("state") String state) {
        // 即使重写ClassPathScanningCandidateComponentProvider.isCandidateComponent 的逻辑，使得能够扫描到接口
        // 但是如果不重置beanClass，依然会调用构造函数去实例化
        return null;
    }
}
